package com.xiaoxu.spzx.manager.mapper;

import com.xiaoxu.spzx.model.dto.system.AssginMenuDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {

    //根据角色id查询角色所拥有的菜单id
    List<Long> findRoleMenuByRoleId(Long roleId);

    void deleteByRoleId(Long roleId);

    void doAssign(AssginMenuDto assginMenuDto);
    //把父菜单isHalf是指半开状态
    void updateSysRoleMenuIsHalf(Long id);
}
